package com.situ.onlinebookstore.back.service;

import com.github.pagehelper.PageInfo;
import com.situ.onlinebookstore.common.entity.Goods;

import java.util.List;

public interface GoodsService {
    //添加
    int add(Goods goods, String[] pics) throws Exception;
    //编辑
    int edit(Goods goods, String[] pics) throws Exception;
    //根据ID查询
    Goods getById(Integer id);
    //查询所有
    List search(Goods goods);
    //分页查询
    PageInfo searchForPage(Integer page, Integer limit, Goods goods);
}
